package com.framework.util.file;

import java.io.IOException;
import java.util.List;

import com.framework.bdt.FileBdt;
import com.framework.bdt.enumClass.FileType;
import com.framework.util.AbstractFileServerUtility;

public class FileUtility extends AbstractFileServerUtility {
	public boolean runImageUpload(FileBdt fileBdt, FileType fileType) throws IOException {
		if(FileType.IMAGE != fileType) throw new IOException("FIleType is IMAGE");
		return runFileServerUpload(fileType, fileBdt);
	}

	public boolean runImageUpload(List<FileBdt> fileBdts, FileType fileType) throws IOException {
		if(FileType.IMAGE != fileType) throw new IOException("FIleType is IMAGE.");
		return runFileServerUpload(fileType, fileBdts);
	}
}
